Integrand size = 26, antiderivative size = 210 \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=-\frac {35 i a^{5/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{128 \sqrt {2} d}+\frac {35 i a^3}{128 d \sqrt {a+i a \tan (c+d x)}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3568, 44, 53, 65, 212} \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=-\frac {35 i a^{5/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{128 \sqrt {2} d}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}+\frac {35 i a^3}{128 d \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Rule 44
Rule 53
Rule 65
Rule 212
Rule 3568
Rubi steps \begin{align*} \text {integral}& = -\frac {\left (i a^7\right ) \text {Subst}\left (\int \frac {1}{(a-x)^4 (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{d} \\ & = -\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {\left (7 i a^6\right ) \text {Subst}\left (\int \frac {1}{(a-x)^3 (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{12 d} \\ & = -\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {\left (35 i a^5\right ) \text {Subst}\left (\int \frac {1}{(a-x)^2 (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{96 d} \\ & = -\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}-\frac {\left (35 i a^4\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{128 d} \\ & = \frac {35 i a^3}{128 d \sqrt {a+i a \tan (c+d x)}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}-\frac {\left (35 i a^3\right ) \text {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,i a \tan (c+d x)\right )}{256 d} \\ & = \frac {35 i a^3}{128 d \sqrt {a+i a \tan (c+d x)}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}-\frac {\left (35 i a^3\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{128 d} \\ & = -\frac {35 i a^{5/2} \text {arctanh}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{128 \sqrt {2} d}+\frac {35 i a^3}{128 d \sqrt {a+i a \tan (c+d x)}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 \sqrt {a+i a \tan (c+d x)}}-\frac {7 i a^5}{48 d (a-i a \tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}}-\frac {35 i a^4}{192 d (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.12 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.25 \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\frac {i a^3 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},4,\frac {1}{2},\frac {1}{2} (1+i \tan (c+d x))\right )}{8 d \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 932 vs. \(2 (170 ) = 340\).
Time = 5.97 (sec) , antiderivative size = 933, normalized size of antiderivative = 4.44
\[\text {Expression too large to display}\]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 309, normalized size of antiderivative = 1.47 \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=-\frac {{\left (105 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} d e^{\left (i \, d x + i \, c\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - 105 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} d e^{\left (i \, d x + i \, c\right )} \log \left (\frac {4 \, {\left (a^{3} e^{\left (i \, d x + i \, c\right )} - \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (-i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{a^{2}}\right ) - \sqrt {2} {\left (-8 i \, a^{2} e^{\left (8 i \, d x + 8 i \, c\right )} - 46 i \, a^{2} e^{\left (6 i \, d x + 6 i \, c\right )} - 125 i \, a^{2} e^{\left (4 i \, d x + 4 i \, c\right )} - 39 i \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )} + 48 i \, a^{2}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{768 \, d} \]
[In]
[Out]
Timed out. \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 194, normalized size of antiderivative = 0.92 \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\frac {i \, {\left (105 \, \sqrt {2} a^{\frac {7}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + \frac {4 \, {\left (105 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a^{4} - 560 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a^{5} + 924 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{6} - 384 \, a^{7}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} - 6 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a + 12 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{2} - 8 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{3}}\right )}}{1536 \, a d} \]
[In]
[Out]
Timed out. \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx=\int {\cos \left (c+d\,x\right )}^6\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2} \,d x \]
[In]
[Out]